package com.tfr.webflux.service;

import com.tfr.webflux.entity.User;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

/**
 * @description:
 * @author: rain
 * @date: Created in 2021/12/7 18:58
 * @version:
 * @modified By:
 */
@Service
public interface UserService  extends ReactiveMongoRepository<User,String> {

    Flux<User> findByAgeBetween(int start,int end);

}
